package org.cunamas.core.dto.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.cunamas.core.dto.ReporteTotalNiniosAtendidosDto;
import org.springframework.jdbc.core.RowMapper;

public class ReporteTotalNiniosAtendidosMapper implements
		RowMapper<ReporteTotalNiniosAtendidosDto> {

	public ReporteTotalNiniosAtendidosDto mapRow(ResultSet rs, int rowNum)
			throws SQLException {
		ReporteTotalNiniosAtendidosDto dto = new ReporteTotalNiniosAtendidosDto();
		dto.setTotal(rs.getInt(1));
		dto.setPeriodo(rs.getInt(2));
		return dto;
	}

}
